using System;
using NUnit.Framework;
using CWare.CMetrics.Core;

namespace CWare.CMetrics.Tests
{
[TestFixture]
public class MetricsTests
{
    [Test]
    [ExpectedException(typeof(ArgumentNullException))]
    public void SLOC_NullArgument()
    {
        Metrics.SLOC(null);
    }

    [Test]
    public void SLOC_Simple()
    {
        var result = Metrics.SLOC("../assets/tests/metrics.cs");
        Assert.AreEqual(21, result);
    }

    [Test]
    public void ELOC_Simple()
    {
        var result = Metrics.ELOC("../assets/tests/metrics.cs");
        Assert.AreEqual(4, result);
    }
}
}
